﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using Process;

namespace childcare
{
    public partial class frm_test : Form
    {
        SqlConnection con = new SqlConnection();
        private DataTable dt = new DataTable();
        private SqlDataAdapter da = new SqlDataAdapter();
        public frm_test()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string connect = @"Data Source=BLACK-PC\SQLEXPRESS;Initial Catalog=Childcare;Integrated Security=True";
            con = new SqlConnection(connect);
            connectdatabase.Openconnect();
           frm_rp_hocphi frm = new frm_rp_hocphi(connectdatabase.ex("select * from hoc_phi where HP_ID = " + txt_test.Text));
            frm.Show();
        }

        private void label2_Click(object sender, EventArgs e)
        {

        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Dispose();
            frmguest _frm = new frmguest();
            _frm.Show();
        }

        private void button3_Click(object sender, EventArgs e)
        {
           
        }
    }
}
